<?php
class PartnerRelCat extends CActiveRecord {

    public $partnerid;
    public $relCatId;
    public $val;
    
    public static function model($className = __CLASS__) {
        return parent::model($className);
    }

    public function tableName() {
        return 'partners_relcat';
    }
    
    public function relations() {
        return array(
            'cats'=>array(self::HAS_ONE, 'PartnerCat', array('catId'=>'relCatId')),
        );
    }
}